package fm.yichenet.mongo.service;

import com.mongodb.DBObject;
import fm.dto.NeiyiUser;

import java.util.List;
import java.util.Map;

/**
 * Created by 宏炜 on 2017-06-19.
 */
public interface UserAddressService {

    Map mergeAddress(Map dbObject, NeiyiUser user) throws Exception;

    void deleteAddress(NeiyiUser user, String addressId) throws Exception;

    List addressList(NeiyiUser user) throws Exception;

    DBObject getById(String addressId) throws Exception;
}
